package com.itheima.health.service.impl;

import com.itheima.health.dao.NanNvDao;
import com.itheima.health.entity.Result;
import com.itheima.health.service.NanNvService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;


@DubboService
@Slf4j
public class NanNvServiceImpl implements NanNvService {

        @Autowired
        NanNvDao nanNvDao;

        /**
         * @Author: 86166
         * @Date: 10:04 2021/1/20
         * @Parms []
         * @ReturnType: java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
         * @Description: 查询男女占比
        */
    @Override
    public List<Map<String, Object>> countByGender() {
        log.info("[map] - countByGender: {}",nanNvDao.countByGender());
        return nanNvDao.countByGender();
    }
}
